package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int delete(Long id);

    int insert(Role role);

    Role select(Long id);

    List<Role> list();

    int update(Role role);


    List<Role> selectForList(QueryObject qo);

    void insertRelation(@Param("roleId") Long roleId, @Param("permissionId") Long permissionId);

    void deleteRelation(Long roleId);

    List<String> selectRoleSnByEmployeeId(Long employeeId);
}